package models

import (
	"time"
)
// DgArticle 文章管理
type Article struct {
	ID int64 `json:"id" gorm:"id"`
	Title string `json:"title" gorm:"title"`
	Image string `json:"image" gorm:"image"`
	Content string `json:"content" gorm:"content"`
	Status int64 `json:"status" gorm:"status"`
	CreatedAt time.Time `json:"created_at" gorm:"created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"updated_at"`
}

// TableName 表名称
func (*Article) TableName() string {
    return "dg_article"        
}